// Scramble string
// By Ben 23/10/2018
#include <iostream>
#include <time.h>

using namespace std;

int main(int argc, char **argv) {
	//String to scramble
	string s0 = "I like programming on SoloLearn";
	int r = 0;
	
	for (int i = 0; i < s0.length(); i++){
		//Get random number from the strings length
		r = rand() * i % s0.length();
		//Only switch alpha and numeric
		if (isalnum(s0[i])){
			//Swap chars
			swap(s0[i], s0[r]);
		}
	}
	//Output string
	std::cout << s0.c_str() << endl;

	system("pause");
	return 0;
}